package com.drug.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

public class Hospital {
    private Integer hId;

    private String hName;

    private String hAddress;

    private String hPostalcode;

    private String hRegion;

    private String hGrade;

    private Integer hBednum;

    private String hProfit;

    private String hOffphone;

    private String hOfffax;

    private String hPdphone;

    private String hHcategory;

    private String hDrugRly;

    private String hBusinessLy;
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date hCreateTime;

    private Integer hIsdel;

    private String state;

    public Integer gethId() {
        return hId;
    }

    public void sethId(Integer hId) {
        this.hId = hId;
    }

    public String gethName() {
        return hName;
    }

    public void sethName(String hName) {
        this.hName = hName == null ? null : hName.trim();
    }

    public String gethAddress() {
        return hAddress;
    }

    public void sethAddress(String hAddress) {
        this.hAddress = hAddress == null ? null : hAddress.trim();
    }

    public String gethPostalcode() {
        return hPostalcode;
    }

    public void sethPostalcode(String hPostalcode) {
        this.hPostalcode = hPostalcode == null ? null : hPostalcode.trim();
    }

    public String gethRegion() {
        return hRegion;
    }

    public void sethRegion(String hRegion) {
        this.hRegion = hRegion == null ? null : hRegion.trim();
    }

    public String gethGrade() {
        return hGrade;
    }

    public void sethGrade(String hGrade) {
        this.hGrade = hGrade == null ? null : hGrade.trim();
    }

    public Integer gethBednum() {
        return hBednum;
    }

    public void sethBednum(Integer hBednum) {
        this.hBednum = hBednum;
    }

    public String gethProfit() {
        return hProfit;
    }

    public void sethProfit(String hProfit) {
        this.hProfit = hProfit == null ? null : hProfit.trim();
    }

    public String gethOffphone() {
        return hOffphone;
    }

    public void sethOffphone(String hOffphone) {
        this.hOffphone = hOffphone == null ? null : hOffphone.trim();
    }

    public String gethOfffax() {
        return hOfffax;
    }

    public void sethOfffax(String hOfffax) {
        this.hOfffax = hOfffax == null ? null : hOfffax.trim();
    }

    public String gethPdphone() {
        return hPdphone;
    }

    public void sethPdphone(String hPdphone) {
        this.hPdphone = hPdphone == null ? null : hPdphone.trim();
    }

    public String gethHcategory() {
        return hHcategory;
    }

    public void sethHcategory(String hHcategory) {
        this.hHcategory = hHcategory == null ? null : hHcategory.trim();
    }

    public String gethDrugRly() {
        return hDrugRly;
    }

    public void sethDrugRly(String hDrugRly) {
        this.hDrugRly = hDrugRly == null ? null : hDrugRly.trim();
    }

    public String gethBusinessLy() {
        return hBusinessLy;
    }

    public void sethBusinessLy(String hBusinessLy) {
        this.hBusinessLy = hBusinessLy == null ? null : hBusinessLy.trim();
    }

    public Date gethCreateTime() {
        return hCreateTime;
    }

    public void sethCreateTime(Date hCreateTime) {
        this.hCreateTime = hCreateTime;
    }

    public Integer gethIsdel() {
        return hIsdel;
    }

    public void sethIsdel(Integer hIsdel) {
        this.hIsdel = hIsdel;
    }

    public String getState() {
        return state;
    }

    public void setState(String state) {
        this.state = state == null ? null : state.trim();
    }
}